home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’96 / PredatorPrey / Dispatcher.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-06-22  |  1006 b   |  37 lines  |  [TEXT/KAHL]

  1. /* Dispatcher.h -- dispatcher for windows and for modeless dialogs */
  2.  
  3. #ifndef __DIS__
  4. #define __DIS__
  5.  
  6. #include "Globals.h"
  7.  
  8. /*----------*/
  9. void    DispatcherSeg        (void);
  10.  
  11. void    DoIdle    (void);
  12.  
  13. void    OpenWindows            (Str255            fName,
  14.                              short            vRefNum,
  15.                              short            fRefNum);
  16. /*void    CloseCurWindow        (void);*/
  17. void    DoControl            (ControlHandle    whichControl,
  18.                               short             whichPart,
  19.                              Point            where);
  20. void    MouseInContent         (Point            where,
  21.                               short            modifiers);
  22. void    TypeInWindow        (char            ch);
  23. void    UpdateContent          (void);
  24. void    ActivateContent     (Boolean        activate);
  25. void    ResizeContent          (void);
  26. pascal void ScrollWindow    (short            newValue,
  27.                                short            oldValue);
  28.  
  29. void    InitModelessDialogs (void);
  30. void    CloseModelessDialog (DialogPtr        whichDialog);
  31. Boolean    FilterModeless         (DialogPtr        whichDialog,
  32.                                EventRecord    *event,
  33.                              short            *itemHit);
  34. void    DoModelessItem        (DialogPtr        whichDialog,
  35.                               short            itemNr);
  36.  
  37. #endif    /*    __DIS__    */